package cn.jsc.order.domain;

import cn.jsc.basic.domain.BaseDomain;
import cn.jsc.org.domain.Shop;
import cn.jsc.pet.domain.Pet;
import cn.jsc.user.domain.User;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
/**
 * 实体类：领养订单
 */
@Data
public class AdoptOrder extends BaseDomain {
    //摘要
    private String digest;
    //状态：0待支付，1已支付，2待确认，-1完成
    private Integer state = 0;
    //领养的价格 - 销售价
    private BigDecimal price;
    //订单唯一标识
    private String orderSn;
    //支付唯一标识
    private String paySn;
    //最后支付时间
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date lastPayTime;
    //最后确认时间
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date lastConfirmTime;
    //领养哪个宠物
    private Long pet_id;
    private Pet pet;
    //哪个用户领养的
    private Long user_id;
    private User user;
    //在哪个店铺领养的
    private Long shop_id;
    private Shop shop;

}
